package com.wenan.data
{
	import mx.collections.ArrayCollection;

	public class ReportData
	{
		private var _dataProvider:Object;			//数据源
		private var _xSelectableFields:ArrayCollection;		//x轴可选项数据
		private var _ySelectableFields:ArrayCollection;		//y轴可选项数据
		private var _xDefaultField:String;					//x轴默认展示项
		private var _yDefaultFields:ArrayCollection;		//y轴默认展示项
		private var _chartStyle:Object;
		private var _reportStyle:ParameterCollection;
		
		public function ReportData(dataProvider:Object = null, 
								   xSelectableFields:ArrayCollection = null, ySelectableFields:ArrayCollection = null,
								   xDefaultField:String = null, yDefaultFields:ArrayCollection = null, chartStyle:Object = null, reportStyle:ParameterCollection = null)
		{
			this._dataProvider = dataProvider;
			this._xSelectableFields = xSelectableFields;
			this._ySelectableFields = ySelectableFields;
			this.xDefaultField = xDefaultField;
			this.yDefaultFields = yDefaultFields;
			this.chartStyle = chartStyle;
			this.reportStyle = reportStyle;
		}
		
		public function get reportStyle():ParameterCollection
		{
			return _reportStyle;
		}

		public function set reportStyle(value:ParameterCollection):void
		{
			_reportStyle = value;
		}

		public function get chartStyle():Object
		{
			return _chartStyle;
		}

		public function set chartStyle(value:Object):void
		{
			_chartStyle = value;
		}

		public function get dataProvider():Object
		{
			return _dataProvider;
		}
		
		public function set dataProvider(value:Object):void
		{
			_dataProvider = value;
		}
		
		public function get xSelectableFields():ArrayCollection
		{
			return _xSelectableFields;
		}
		
		public function set xSelectableFields(value:ArrayCollection):void
		{
			_xSelectableFields = value;
		}
		
		public function get ySelectableFields():ArrayCollection
		{
			return _ySelectableFields;
		}
		
		public function set ySelectableFields(value:ArrayCollection):void
		{
			_ySelectableFields = value;
		}

		public function get xDefaultField():String
		{
			return _xDefaultField;
		}

		public function set xDefaultField(value:String):void
		{
			_xDefaultField = value;
		}

		public function get yDefaultFields():ArrayCollection
		{
			return _yDefaultFields;
		}

		public function set yDefaultFields(value:ArrayCollection):void
		{
			_yDefaultFields = value;
		}

	}
}